package designpatterns.priciple.di;

public class Main {
    public static void main(String[] args) {
        Shape line = new Line();
        Shape rectangle = new Rectangle();
        Drawer drawer = new Drawer();
        drawer.setShape(line);
        drawer.draw();
        drawer.setShape(rectangle);
        drawer.draw();
    }
}
